<template>
  <div v-show="isShow" class="alertWrap" style="opacity=1">
    {{ text }}
  </div>
</template>

<style>
.alertWrap{
  transition:opacity;
  opacity: 0.5;
  padding:0 30px;
  height: 30px;
  line-height: 30px;
  /* border:1px solid #ccc; */
  color: white;
  text-align: center;
  background:rgb(255, 112, 112);
  position: absolute;
  top:30%;
  left:50%;
  transform: translateX(-50%);
  border-radius:6px;
  box-shadow: 0px 4px 8px 0 rgb(184, 182, 182);
}
</style>
